import org.junit.Assert;
import org.junit.Test;

public class StringUtilText {
    @Test
    public void textPrintNumber(){
        StringUtil.printNumber("abcdefg");
        StringUtil.printNumber(null);
    }

    @Test
    public void testGetMaxIndex(){
        int index1 = StringUtil.getMaxIndex(null);
        System.out.println(index1);

        int index2 = StringUtil.getMaxIndex("admin");
        System.out.println(index2);

        Assert.assertEquals("方法内部有bug",4,index2);

    }
}
